home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
t3_1
/
xlib.lha
/
xlib
/
xtextitem.t
< prev
next >
Wrap
Text File
|
1990-06-01
|
803b
|
18 lines
(herald xtextitem (env tsys (xlib interface)))
(DEFINE (MAKE-XTEXTITEM) (CONS 'XTEXTITEMP (MAKE-BYTEV 16)))
(DEFINE (XTEXTITEM-CHARS X)
((LAMBDA (X Y) (CONS 'CHARP (MREF-POINTER X Y)))
(CHK-XTEXTITEMP X)
0))
(DEFINE (XTEXTITEM-CHARS! X Y)
((LAMBDA (X Y Z) (SET-MREF-POINTER! X Y (CHK-CHARP Z)))
(CHK-XTEXTITEMP X)
0
Y))
(DEFINE (XTEXTITEM-NCHARS X) (MREF-INTEGER (CHK-XTEXTITEMP X) 4))
(DEFINE (XTEXTITEM-NCHARS! X Y) (SET-MREF-INTEGER! (CHK-XTEXTITEMP X) 4 Y))
(DEFINE (XTEXTITEM-DELTA X) (MREF-INTEGER (CHK-XTEXTITEMP X) 8))
(DEFINE (XTEXTITEM-DELTA! X Y) (SET-MREF-INTEGER! (CHK-XTEXTITEMP X) 8 Y))
(DEFINE (XTEXTITEM-FONT X) (MREF-INTEGER (CHK-XTEXTITEMP X) 12))
(DEFINE (XTEXTITEM-FONT! X Y) (SET-MREF-INTEGER! (CHK-XTEXTITEMP X) 12 Y))